package znbkTestPaperXtfx.saveDiagnosticReportInfo;

import com.example.lancooznbk.service.HttpPostServer;
import com.lancoo.rxretrofitlibrary.Api.BaseApi;
import com.lancoo.rxretrofitlibrary.listener.HttpOnNextListener;
import com.trello.rxlifecycle.components.support.RxAppCompatActivity;

import retrofit2.Retrofit;
import rx.Observable;

/**
 * Created by Administrator on 2018\4\3 0003.
 */

public class SaveDiagnosticReportApi extends BaseApi {


    private SaveDiagnosticReportEntity mSaveDiagnosticReportEntity;

    public SaveDiagnosticReportEntity getmSaveDiagnosticReportEntity() {
        return mSaveDiagnosticReportEntity;
    }

    public void setmSaveDiagnosticReportEntity(SaveDiagnosticReportEntity mSaveDiagnosticReportEntity) {
        this.mSaveDiagnosticReportEntity = mSaveDiagnosticReportEntity;
    }

    public SaveDiagnosticReportApi(HttpOnNextListener listener, RxAppCompatActivity rxAppCompatActivity) {
        super(listener, rxAppCompatActivity);
    }

    @Override
    public Observable getObservable(Retrofit retrofit) {
        HttpPostServer httpPostServer = retrofit.create(HttpPostServer.class);
        return httpPostServer.saveDiagnosticReportInfo(mSaveDiagnosticReportEntity);
    }


}